package br.com.klanpaia.Game;

import org.andengine.opengl.font.Font;
import org.andengine.opengl.texture.TextureOptions;
import org.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlas;
import org.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlasTextureRegionFactory;
import org.andengine.opengl.texture.region.TiledTextureRegion;

public class CarregarImagem {
	
	MainActivity contexto;
	
	public CarregarImagem(MainActivity contexto) {
		super();
		this.contexto = contexto;
	}

	private BitmapTextureAtlas atlas;
	private BitmapTextureAtlas atlasLogon;

	private Font mFont;
	
	public TiledTextureRegion logon1, logon2, menu;
	
	public void carregarLogons(){
		BitmapTextureAtlasTextureRegionFactory.setAssetBasePath("Sprites/");
		atlasLogon = new BitmapTextureAtlas(contexto.getTextureManager(), 1024, 1024, TextureOptions.BILINEAR);
		
		logon1 =  BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(this.atlasLogon, contexto, "klanpaia.png", 0, 0, 1, 1); // 64x32
		logon2 =  BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(this.atlasLogon, contexto, "unidev.png", 287, 0, 1, 1); // 64x32
		menu =  BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(this.atlasLogon, contexto, "Menu.jpg", 0, 77, 1, 1); // 64x32
		
		atlasLogon.load();
	}
	
	public void carregarImagem(){
		
	}
	

}
